package mx.dao;

import java.util.List;
import java.util.Map;

import mx.entity.Department;

/**
 * 部门dao
 * 
 * @author root
 *
 */
public interface DepartmentDao {
	/**
	 * 按条件查询所有部门
	 * 
	 * @return
	 */
	public List<Department> list(Map<String, Object> map);

	/**
	 * 查询总记录数
	 * 
	 * @param map
	 * @return
	 */
	public Long getTotal(Map<String, Object> map);

	/**
	 * 根据条件查找职位信息
	 * 
	 * @param employee
	 * @return
	 */
	public Department find(Department department);

	/**
	 * 根据id查找部门
	 * 
	 * @param employee
	 * @return
	 */
	public Department findById(Integer id);

	/**
	 * 更新部门信息
	 * 
	 * @param department
	 * @return
	 */
	public Integer update(Department department);

	/**
	 * 根据id删除部门
	 * 
	 * @param list
	 * @return
	 */
	public Integer delete(Integer id);

	/**
	 * 添加部门
	 * 
	 * @param employee
	 * @return
	 */
	public Integer add(Department department);
}
